<template>
  <div id="ready">
    <h1>This is an ready page</h1>
    用户名：{{username}}
    
  </div>
</template>
<script>
import { Message } from "element-ui";
import routt from "./ready.router";
import utils from "../../utils/utils";
export default {
  name: "about",
  data() {
    return {
      username:"请登陆",
      okToken: null
    };
  },
  beforeCreate() {
    console.log("创建前：");
  },
  created() {},
  mounted: function() {
    //query得到的是 get方式的  params得到的是post方式的
    //console.log(this.$route.query.token)
    this.username=utils.getCookie('nickname')
  },
  beforeUpdate() {
    console.log("=即将更新渲染=");
  },
  beforeRouteEnter(to, from, next) {},
  components: {},

  methods: {
    readyToken: function() {
      //console.log(utils.getUrlKey("mm"));
    }
  }
};
</script>